<template>
  <div>
    <A :data="['张三', false, 123]" @send="getName">
      <template #default="{ item, index }">
        <div>{{ item }} --- {{ index }}</div>
      </template>
    </A>
  </div>
</template>

<script setup lang="ts">
import A from "./A.vue";

const getName = (name: string) => {
  console.log(name);
};
</script>

<style scoped></style>
